<%@page import="cn.yunhe.entity.Board"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/bootstrap.min.css" rel="stylesheet" >
<script type="text/javascript" src ="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src ="js/bootstrap.min.js"></script>
<title>版块</title>
 <base target="showFrame"> 
<script type="text/javascript">
		$(function(){
			$(".nav li").click(function(){
				$(".nav li").removeClass("active");
				$(this).addClass("active");
			});
			
		})
</script>
</head>
<body>
	<% 
		Object obj=request.getAttribute("blist");	
	%>
		<ul class="nav nav-pills nav-stacked">
			<%	
				if(obj!=null){
					List<Board> blist=(List<Board>)obj;
					for(int i=0;i<blist.size();i++){
						Board b=blist.get(i);	
						if(i==0){
			%>
				<li class="active"><a href="getTopices?bid=<%=b.getId()%>"><%=b.getName() %></a> </li>
			<%
					} else {										
			%>
				<li><a  href="getTopices?bid=<%=b.getId()%>"><%=b.getName()%></a></li>
			<%} %>
			
			<%
				}
					} else{
						System.out.println("left========");
					} 	
			%>	
		</ul>
</body>
</html>